﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
/*This Model class is responsible for the customized tab that is included in the templates, it contains 3 lists that corresponds
 * to both Type (TextArea-Input-Picture-..etc) and Content(actual input of user) and Title(title of the input)
 * of each element in the tab.
 * The tab name is specified in the Name attribute!
 * Each class contains create and modified times for security reasons*/
namespace Fish.Models
{
    public class Customizeds
    {
        [Key]
        public int ID { get; set; }

        [Required]
        public string Name { get; set; }

        public virtual IList<customizedString> fieldType { get; set; }
        public virtual IList<customizedString> fieldContent { get; set; }
        public virtual IList<customizedString> fieldTitle { get; set; }

        [DataType(DataType.DateTime)]
        [ScaffoldColumn(false)]
        public DateTime Created { get; set; }

        [DataType(DataType.DateTime)]
        [ScaffoldColumn(false)]
        public DateTime Modified { get; set; }

        public virtual Events Event { get; set; }

        public Customizeds()
        {
            this.Created = DateTime.Now;
            this.Modified = DateTime.Now;
        }
    }
}